package com.team.cluedo.app.utils;

import com.team.cluedo.R;
import com.team.cluedo.R.id;

import android.content.Context;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.GridView;
import android.widget.ListAdapter;

public class buttonGrid implements ListAdapter {
	    private Context mContext;

	    public buttonGrid(Context c) {
	        mContext = c;
	    }

	    public int getCount() {
	        return mThumbIds.length;
	    }

	    public Object getItem(int position) {
	        return null;
	    }

	    public long getItemId(int position) {
	        return 0;
	    }

	    // create a new ImageView for each item referenced by the Adapter
	    public View getView(int position, View convertView, ViewGroup parent) {
	        Button button;
	        if (convertView == null) {  // if it's not recycled, initialize some attributes
	        	button = new Button(mContext);
	        	button.setLayoutParams(new GridView.LayoutParams(85, 85));
	        	button.setPadding(8, 8, 8, 8);
	        } else {
	        	button = (Button) convertView;
	        }

	        return button;
	    }

	    // references to our images
	    private Integer[] mThumbIds = {
	            R.id.Button01, R.id.Button02,
	            R.id.Button03, R.id.Button04,
	            R.id.Button05
	    };

		@Override
		public boolean areAllItemsEnabled() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEnabled(int arg0) {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public int getItemViewType(int arg0) {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public int getViewTypeCount() {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public boolean hasStableIds() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public boolean isEmpty() {
			// TODO Auto-generated method stub
			return false;
		}

		@Override
		public void registerDataSetObserver(DataSetObserver arg0) {
			// TODO Auto-generated method stub
			
		}

		@Override
		public void unregisterDataSetObserver(DataSetObserver arg0) {
			// TODO Auto-generated method stub
			
		}

}
